//
// Created by 严敏 on 2019/9/27.
// Copyright (c) 2019 上海创米科技有限公司. All rights reserved.
//

#import <Foundation/Foundation.h>

//看护视频长度默认30秒
#define EVENT_TIME_LEN 10

@interface ALiMoveDetectionEventModel : NSObject

@property(nonatomic, copy) NSString *eventId;//事件ID，若有生效的事件联动录像计划，则可根据事件ID来获取云存计划录像播放地址
@property(nonatomic, copy) NSNumber *eventType;//事件类型， 1移动侦测


@property(nonatomic, copy) NSString *pictureId;
@property(nonatomic, copy) NSString *pictureUrl;//图片URL
@property(nonatomic, copy) NSString *thumbUrl;//图片缩略图URL


@property(nonatomic, copy) NSString *beginTime;
@property(nonatomic, assign) NSInteger beginTime1970;

@property(nonatomic, copy) NSString *endTime;
@property(nonatomic, assign) NSInteger endTime1970;

@property(nonatomic, copy) NSString *fileName;
@property(nonatomic, copy) NSString *vodUrl;


//eventList
//eventDesc = "\U79fb\U52a8\U4fa6\U6d4b";
//eventId = "09e72d92af5a48efb46f4076c2f49806_1569553479648";
//eventPicId = TWZHOVVjWjJtMlhNVXlCUHNaWko2eExXbUhEUEFoV18yN2czcG50OTFzby8zOTU4MGRiMTFiNTk0ZTA5OWNjN2VmOGNjYWVhNmJlYl8xNTY5NTUzNDc5NjQ4;
//eventTime = "2019-09-27 11:04:39";
//eventTimeUTC = "2019-09-27T03:04:39Z";
//eventType = 1;
//iotId = DhNvJPQWkD8a5fONDqgo000100;
+ (NSMutableArray<ALiMoveDetectionEventModel *> *)responseAliWithJSONObject:(id)object;


//"recordFileList"
//"beginTime": "2019-12-19 17:02:01",
//"beginTimeUTC": "2019-12-19T09:02:01Z",
//"endTime": "2019-12-19 17:02:25",
//"endTimeUTC": "2019-12-19T09:02:25Z",
//"fileName": "1576746121_SkqKBv_nr35DrCS3ZkMnbEPNxaghUrix-yG-tm-EYhk_0/826a303b-f70a-4f87-88e3-658d43d44652",
//"fileSize": 1317504,
//"recordType": 1,
//"snapshotUrl": "https://link-vision-storage-online.oss-cn-shanghai.aliyuncs.com/SkqKBv_nr35DrCS3ZkMnbEPNxaghUrix-yG-tm-EYhk_0%2F826a303b-f70a-4f87-88e3-658d43d44652_snapshot.jpg?OSSAccessKeyId=LTAIOn4T1bGCeYOx&Expires=1576753189&Signature=MurJzFQ4uFcAi4RDzZUEoXZ3iYY%3D",
//"streamType": 0
+ (NSMutableArray<ALiMoveDetectionEventModel *> *)responseAliRecordFileListWithJSONObject:(id)object;

/*pictureList =     (
{
    iotId = QV1ndLJpCuIWv5GLZXwY000100;
    pictureId = U2txS0J2X25yMzVEckNTM1prTW5iRVBOeGFnaFVyaXgteUctdG0tRVloay83ZDFlY2U5OTQ1ZGQ0OWVlYmIwNmYxYzkwMDYwOTM2N18xNTgyNjMyMjQzMDQ0;
    pictureTime = "2020-02-25 20:04:03";
    pictureTimeUTC = "2020-02-25 12:04:03";
    pictureUrl = "https://link-vision-picture-sh.oss-cn-shanghai.aliyuncs.com/SkqKBv_nr35DrCS3ZkMnbEPNxaghUrix-yG-tm-EYhk/7d1ece9945dd49eebb06f1c900609367?Expires=1582635851&OSSAccessKeyId=LTAILduaCDAC561K&Signature=5NvKzpS%2FOKwizrmn024W4lYnQM8%3D";
    thumbUrl = "https://link-vision-picture-sh.oss-cn-shanghai.aliyuncs.com/SkqKBv_nr35DrCS3ZkMnbEPNxaghUrix-yG-tm-EYhk/7d1ece9945dd49eebb06f1c900609367?Expires=1582635851&OSSAccessKeyId=LTAILduaCDAC561K&Signature=5NvKzpS%2FOKwizrmn024W4lYnQM8%3D";
},*/
+ (NSMutableArray<ALiMoveDetectionEventModel *> *)responseAliPictureListWithJSONObject:(id)object;


//pictureList
//iotId = DhNvJPQWkD8a5fONDqgo000100;
//pictureId = TWZHOVVjWjJtMlhNVXlCUHNaWko2eExXbUhEUEFoV18yN2czcG50OTFzby9kMjdjOTQ5MjhhYWI0MDQ0YjE5MzYyMWI2OTlkNWEwMF8xNTY5NTU5MTkxMDc5;
//pictureTime = "2019-09-27 12:39:51";
//pictureTimeUTC = "2019-09-27 04:39:51";
//pictureUrl = "https://link-vision-picture-sh.oss-cn-shanghai.aliyuncs.com/MfG9UcZ2m2XMUyBPsZZJ6xLWmHDPAhW_27g3pnt91so/d27c94928aab4044b193621b699d5a00?Expires=1569566630&OSSAccessKeyId=LTAILduaCDAC561K&Signature=3LPvBfKYoXhCXHZnsO2bv%2BHMOn4%3D";
//thumbUrl = "https://link-vision-picture-sh.oss-cn-shanghai.aliyuncs.com/MfG9UcZ2m2XMUyBPsZZJ6xLWmHDPAhW_27g3pnt91so/d27c94928aab4044b193621b699d5a00_thumb?Expires=1569566630&OSSAccessKeyId=LTAILduaCDAC561K&Signature=aCfNu2ePjNqkWdHVKrUEyRJLVHU%3D";
+ (void)setImgData:(NSMutableArray<ALiMoveDetectionEventModel *> *)array imgData:(id)data;

//vodList
//beginTime = "2019-09-11 17:24:39";
//beginTimeUTC = "2019-09-11T09:24:39Z";
//endTime = "2019-09-11 17:25:09";
//endTimeUTC = "2019-09-11T09:25:09Z";
//fileName = "1568193879_MfG9UcZ2m2XMUyBPsZZJ6xLWmHDPAhW_27g3pnt91so_0/9d15e0bd-2e22-4213-b4a9-cbd782e6fba4";
//vodUrl = "https://link-vision.cn-shanghai.aliyuncs.com/vod/encrypt-vod/MfG9UcZ2m2XMUyBPsZZJ6xLWmHDPAhW_27g3pnt91so_0/9d15e0bd-2e22-4213-b4a9-cbd782e6fba4.m3u8?token=8c65de7d5e974a5e9a84cf274a8e6b38";
+ (void)setVideoData:(ALiMoveDetectionEventModel *)model videoData:(id)data;
@end